package com.ctg.itrdc.imageconsole.data.dao;

import java.util.List;

import com.ctg.itrdc.imageconsole.data.entity.DockerMicroService;
import com.ctg.itrdc.paspsdk.data.dao.IBaseCacheDao;
import com.ctg.itrdc.paspsdk.data.dao.IBaseDao;

public interface IDockerMicroServiceDao extends IBaseCacheDao, IBaseDao {	

	public List<DockerMicroService> selectByCreateUserIdAndAppIdAndServiceCode(Long userId, Long appId, String serviceCode);
	
	public DockerMicroService selectById(Long id);

	public List<DockerMicroService> selectByDockerMicroAppId(Long appId);

	public void deleteById(Long serviceId);

	public void updateStateAndReleaseStateAndDesc(Long serviceId, String state, String releaseState, String releaseStateDesc, String lastUpdateTime);

	public void updateAutoscalePolicyId(Long id, Long autoscalePolicyId);

	public void updateIsAutoscalableAndAutoscalePolicyId(Long id, Integer isAutoscalable, Long autoscalePolicyId);
	
	
}
